package com.wx.service.impl;

import com.wx.dao.RecruitmentDao;
import com.wx.model.RecruitmentModel;
import com.wx.service.IRecruitmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IRecruitmentServiceImpl implements IRecruitmentService {
    @Autowired
    RecruitmentDao recruitmentDao;

    @Override
    public List<RecruitmentModel> condiationFindAll(RecruitmentModel recruitmentModel) {
        return recruitmentDao.condiationFindAll(recruitmentModel);
    }

    @Override
    public int getcount(RecruitmentModel recruitmentModel) {
        return recruitmentDao.getcount(recruitmentModel);
    }

    @Override
    public int recruitmentAdd(RecruitmentModel recruitmentModel) {
        return recruitmentDao.recruitmentAdd(recruitmentModel);
    }

    @Override
    public RecruitmentModel recruitmentFindById(RecruitmentModel recruitmentModel) {
        return recruitmentDao.recruitmentFindById(recruitmentModel);
    }

    @Override
    public int recruitmentUpdate(RecruitmentModel recruitmentModel) {
        return recruitmentDao.recruitmentUpdate(recruitmentModel);
    }

    @Override
    public int recruitmentDeleteById(RecruitmentModel recruitmentModel) {
        return recruitmentDao.recruitmentDeleteById(recruitmentModel);
    }

    @Override
    public List<RecruitmentModel> findAll() {
        return recruitmentDao.findAll();
    }
}
